﻿using GameLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsDesktop
{
    public partial class SizeDialog : Form
    {
        public MapSize SelectedSize
        {
            get { return (MapSize)tbSize.SelectedIndex; }
        }

        public SizeDialog()
        {
            InitializeComponent();
            tbSize.SelectedIndex = 0;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}
